package com.jiawa.train.business.service;

import com.jiawa.train.business.domain.TrainSeat;
import com.jiawa.train.business.req.TrainSeatQueryReq;
import com.jiawa.train.business.req.TrainSeatSaveReq;
import com.jiawa.train.business.resp.TrainSeatQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.List;

/**
 * @author zzl
 * @version 1.0
 */
public interface TrainSeatService {
    /**
     * 新增一条高铁座位信息
     * @param req
     */
    void save(TrainSeatSaveReq req);

    /**
     * 分页查询高铁座位信息
     * @param req
     * @return
     */
    PageResp<TrainSeatQueryResp> queryList(TrainSeatQueryReq req);

    /**
     * 根据id删除高铁座位信息
     * @param id
     */
    void delete(Long id);

    /**
     * 根据高铁车次生成高铁座位信息
     * @param trainCode
     */
    void genTrainSeat(String trainCode);

    /**
     * 根据高铁车次查询高铁座位信息
     * @param code
     * @return
     */
    List<TrainSeat> selectByTrainCode(String code);
}
